package com.huyi.concurrent;

import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.atomic.AtomicInteger;

public class MyConcurrentDemo {

	public static void main(String[] args) {
		
		AtomicInteger count = new AtomicInteger(10);
		int ati1 = count.incrementAndGet();
		System.out.println("自增后数据：" + ati1);
		int ati2 = count.decrementAndGet();
		System.out.println("自增后数据：" + ati2);
		
	}
}
